package lbim.client.model;

import lbim.client.main.ChatListener;
import lbim.client.main.LoginListener;
import lbim.client.main.LogoutListener;
import lbim.client.main.MapUpdateListener;
import lbim.client.main.PresenceListener;
import lbim.protocol.LbImProtocol;

/**
 *
 * @author Jestan
 */
public class Account {
    private String userName;
    private String password;

    private String servrURL;
    private boolean connected;


    private ChatListener chatListener;
    private LoginListener loginListener;
    private MapUpdateListener mapUpdateListener;
    private PresenceListener presenceListener;
    private LogoutListener logoutListener;

    private LbImProtocol protocol;

    public Account(String userName, String password, String servrURL) {
        this.userName = userName;
        this.password = password;
        this.servrURL = servrURL;
        this.connected = false;
    }

    public String getPassword() {
        return password;
    }

    public String getServrURL() {
        return servrURL;
    }

    public String getUserName() {
        return userName;
    }

    public ChatListener getChatListener() {
        return chatListener;
    }

    public void setChatListener(ChatListener chatListener) {
        this.chatListener = chatListener;
    }

    public MapUpdateListener getMapUpdateListener() {
        return mapUpdateListener;
    }

    public void setMapUpdateListener(MapUpdateListener mapUpdateListener) {
        this.mapUpdateListener = mapUpdateListener;
    }

    public void setProtocol(LbImProtocol protocol) {
        this.protocol = protocol;
    }

    public LbImProtocol getProtocol() {
        return protocol;
    }

    public LoginListener getLoginListener() {
        return loginListener;
    }

    public void setLoginListener(LoginListener loginListener) {
        this.loginListener = loginListener;
    }

    public boolean isConnected() {
        return connected;
    }

    public void setConnected(boolean connected) {
        this.connected = connected;
    }

    public PresenceListener getPresenceListener() {
        return presenceListener;
    }

    public void setPresenceListener(PresenceListener presenceListener) {
        this.presenceListener = presenceListener;
    }

    public LogoutListener getLogoutListener() {
        return logoutListener;
    }

    public void setLogoutListener(LogoutListener logoutListener) {
        this.logoutListener = logoutListener;
    }
}
